home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / iomon2.zip / IOSTRUC.INC < prev   
Text File  |  1992-01-06  |  4KB  |  140 lines

  1. ;---------------------------------------------------------------
  2. ;iostruc.inc - structures for I/O monitor                      |
  3. ;--------------------------------------------------------------|
  4.  
  5. idt             struc
  6. i_offset        dw      ?
  7. i_selector      dw      ?
  8. i_unused        db      0
  9. i_dpl_id        db      PRESENT + (DPL0 shl 5) + INT_GATE
  10. i_offset2       dw      0
  11. idt             ends
  12.  
  13.  
  14. seg_descrip     struc
  15. seg_limit_low   dw      ?
  16. seg_base_low    dw      ?
  17. seg_base_mid    db      ?
  18. seg_type_dpl    db      ?
  19. seg_limit_gran  db      ?
  20. seg_base_top    db      ?
  21. seg_descrip     ends
  22.  
  23. err_stack_area  struc                   ;stack with error code
  24. e_pushed_int    dw      ?               ;int pushed by I/O monitor
  25. e_pushed_bp     dw      ?               ;bp pushed by I/O monitor
  26. e_errcode       dd      ?               ;error code
  27. e_eip           dd      ?
  28. e_cs            dw      ?
  29.                 dw      ?
  30. e_eflags        dd      ?
  31. e_esp           dd      ?
  32. e_ss            dw      ?
  33.                 dw      ?
  34. e_es            dw      ?
  35.                 dw      ?
  36. e_ds            dw      ?
  37.                 dw      ?
  38. e_fs            dw      ?
  39.                 dw      ?
  40. e_gs            dw      ?
  41.                 dw      ?
  42. err_stack_area  ends
  43.  
  44. stack_area      struc                   ;stack without error code
  45. s_pushed_int    dw      ?               ;int pushed by I/O monitor
  46. s_pushed_bp     dw      ?               ;bp pushed by I/O monitor
  47. s_eip           dd      ?
  48. s_cs            dw      ?
  49.                 dw      ?
  50. s_eflags        dd      ?
  51. s_esp           dd      ?
  52. s_ss            dw      ?
  53.                 dw      ?
  54. s_es            dw      ?
  55.                 dw      ?
  56. s_ds            dw      ?
  57.                 dw      ?
  58. s_fs            dw      ?
  59.                 dw      ?
  60. s_gs            dw      ?
  61.                 dw      ?
  62. stack_area      ends
  63.  
  64.  
  65. user_stack      struc
  66. user_ip         dw      ?
  67. user_cs         dw      ?
  68. user_flags      dw      ?
  69. user_stack      ends
  70.  
  71.  
  72. psp             struc
  73.                 db      80h dup(?)
  74. arg_len         db      ?
  75. arg_off         db      ?
  76. psp             ends
  77.  
  78. doub_word       struc
  79. d_offset        dw      ?
  80. d_segment       dw      ?
  81. doub_word       ends
  82.  
  83. io_struc        struc
  84. io_opcode       db      ?
  85. io_info         db      ?
  86. io_struc        ends
  87.  
  88. buf_record      struc                   ;format of logged data
  89. buf_info        db      ?
  90. buf_port        dw      ?
  91. buf_data        dw      ?
  92. buf_record      ends
  93.  
  94. tss_dat         struc
  95. t_backlink      dw      ?
  96.                 dw      ?
  97. t_esp0          dd      ?
  98. t_ess0          dw      ?
  99.                 dw      ?
  100. t_esp1          dd      ?
  101. t_ess1          dw      ?
  102.                 dw      ?
  103. t_esp2          dd      ?
  104. t_ess2          dw      ?
  105.                 dw      ?
  106. t_cr3           dd      ?
  107. t_eip           dd      ?
  108. t_eflags        dd      ?
  109. t_eax           dd      ?
  110. t_ecx           dd      ?
  111. t_edx           dd      ?
  112. t_ebx           dd      ?
  113. t_esp           dd      ?
  114. t_ebp           dd      ?
  115. t_esi           dd      ?
  116. t_edi           dd      ?
  117. t_es            dw      ?
  118.                 dw      ?
  119. t_cs            dw      ?
  120.                 dw      ?
  121. t_ss            dw      ?
  122.                 dw      ?
  123. t_ds            dw      ?
  124.                 dw      ?
  125. t_fs            dw      ?
  126.                 dw      ?
  127. t_gs            dw      ?
  128.                 dw      ?
  129. t_ldt           dw      ?
  130.                 dw      ?
  131. t_tbit          dw      ?
  132. t_iobase        dw      ?
  133. t_iomap         db      IO_MAP_SIZE     dup(?)
  134. t_iopad         dw      0ffh            ;follow last map byte with 0ffh
  135. tss_dat         ends
  136.  
  137.  
  138.  
  139. ;------end of iostruc.inc
  140.